<?php
namespace app\admin\controller;
use think\Controller;
use app\admin\model\Login as LoginModel;
class Login extends controller
{
	public function index()
	{
		return view("login");
	}
	public function login()
	{
		$model = new LoginModel();
		$res = $model->login();
		if($res){
			$this->success("登录成功","Index/index");
		}else{
			$this->error("登录失败","Login/index");
		}
	}
}
?>